﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AreaLeft.aspx.cs" Inherits="HZ.Supervise.Web.PageControl.AreaLeft" %>

<%@ Register Src="../Common/WebUserArea.ascx" TagName="WebUserArea" TagPrefix="uc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link rel="stylesheet" type="text/css" href="../Style/s-type.css" />

    <script src="../Scripts/jquery-1.3.2.min.js" type="text/javascript"></script>

    <script src="../scripts/DynaForm.js" type="text/javascript"></script>

    <script src="../scripts/GenUtils.js" type="text/javascript"></script>

    <link rel="Stylesheet" type="text/css" href="../Style/style.css" />

    <script type="text/javascript">

        function Button1_onclick() {
            var vareid;
            if ($("#WebUserArea1_ddlCountry").val() == "0" || $("#WebUserArea1_ddlCountry").val() == "") {
                //如果地市为全部  全省为全部 返回空
                if ($("#WebUserArea1_ddlCity").val() == "0" || $("#WebUserArea1_ddlCity").val() == "") {
                    vareid = "";
                }
                //如果地市为全部  省市有值 返回空省市值
                else {
                    vareid = $("#WebUserArea1_ddlCity").val();
                }
            } //如果地市有值 返回地市值
            else {
                vareid = $("#WebUserArea1_ddlCountry").val();
            }
            CallFunc('../Secondphase/ReportArea/ReportOfAreaFirstLevel.aspx?aid=' + vareid, 'FORM', null, 'Main');
            //            $("#ifmain").attr("src", "../Secondphase/ReportArea/ReportOfAreaFirstLevel.aspx?aid=" + vareid);


        }

        function loadcity() {

            $.get("../Common/GetArea.ashx", { areaid: $("#WebUserArea1_ddlCity").val() }, function(data) {
                $("#WebUserArea1_ddlCountry").empty();

                for (var n in data) {
                    $("#WebUserArea1_ddlCountry").append("<option value='" + data[n] + "'>" + n + "</option>");
                }
            }, "json");
        }
    </script>

    <style type="text/css">
        .style1
        {
            width: 141px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div id="main">
        <div class="left">
            <div class="left1">
                <h1 class="leftTitle1">
                    欢迎您！</h1>
                <ul>
                    
                    <li>
                        <asp:Label ID="lblCurrentUser" runat="server" Text="Label"></asp:Label></li>
                    <li>当前角色：
                        <asp:Label ID="lblCurrentRole" runat="server" Text="Label"></asp:Label></li>
                </ul>
            </div>
            <div class="left2">
                <h1 class="leftTitle2">
                    检索</h1>
                <table>
                    <tr>
                        <td>
                            <uc2:WebUserArea ID="WebUserArea1" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <input id="Button2" type="button" value="查  询" class="btn" style="margin-top:1px" onclick="return Button1_onclick()" />
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
    </form>
</body>
</html>
